package api.homework01;

public class SubstringDemo {
    public static void main(String[] args) {
        String str = "www.csdn.com.cn";
        int a = str.indexOf(".");
        System.out.println(str.substring(a+1,str.indexOf(".",a+1)));
    }
}
